import Layout from '@/layouts'

/**
 * 异步:动态路由  基础配置管理
 */
const BaseRoute = {
  path: '/base',
  component: Layout,
  name: '基础配置管理',
  icon: 'basic',
  meta: { 
		title: '基础配置' ,
		icon: 'basic'
  },
  authCode: 'base',
  children: [{
	path: 'user',
	icon: 'user',
	component: () => import('@/views/modules/admin/user/list'),
	name: '用户管理',
	meta: { 
		title: '用户管理',
		icon: 'user'
	},
	authCode: 'base:user',
	children:[{
		path: 'add',
		component: () => import('@/views/modules/admin/user/add'),
		name: '新增用户',
		meta: {
			title: '新增用户',
		},
		hidden: true
	},
	{
		path: 'edit',
		component: () => import('@/views/modules/admin/user/edit'),
		name: '修改用户',
		meta: {
			title: '修改用户',
		},
		hidden: true
	},
	{
		path: 'view',
		component: () => import('@/views/modules/admin/user/view'),
		name: '查看用户',
		meta: {
			title: '查看用户详情',
		},
		hidden: true
	},
	{
		path: 'bindrole',
		component: () => import('@/views/modules/admin/user/bindrole'),
		name: '绑定用户',
		meta: {
			title: '绑定用户',
		},
		hidden: true
	}]
  },{
	path: 'menu',
	icon: 'tree-table',
	component: () => import('@/views/modules/admin/menu/list'),
	name: '菜单管理',
	meta: { 
		title: '菜单管理',
		icon: 'tree-table'
	},
	authCode: 'base:menu',
	children:[{
		path: 'add',
		component: () => import('@/views/modules/admin/menu/add'),
		name: '新增菜单',
		meta: {
			title: '新增菜单',
		},
		hidden: true
	},
	{
		path: 'edit',
		component: () => import('@/views/modules/admin/menu/edit'),
		name: '修改菜单',
		meta: {
			title: '修改菜单',
		},
		hidden: true
	},
	{
		path: 'view',
		component: () => import('@/views/modules/admin/menu/view'),
		name: '查看菜单',
		meta: {
			title: '查看菜单详情',
		},
		hidden: true
	},
	{
		path: 'element',
		component: () => import('@/views/modules/admin/menu/element/index'),
		name: '查看元素',
		meta: {
			title: '查看元素详情',
		},
		hidden: true
	}]
  },{
	path: 'role',
	icon: 'peoples',
	component: () => import('@/views/modules/admin/role/list'),
	name: '角色管理',
	meta: { 
		title: '角色管理',
		icon: 'peoples'
	},
	authCode: 'base:role',
	children:[{
		path: 'add',
		component: () => import('@/views/modules/admin/role/add'),
		name: '新增角色',
		meta: {
			title: '新增角色',
		},
		hidden: true
	},
	{
		path: 'edit',
		component: () => import('@/views/modules/admin/role/edit'),
		name: '修改角色',
		meta: {
			title: '修改角色',
		},
		hidden: true
	},
	{
		path: 'view',
		component: () => import('@/views/modules/admin/role/view'),
		name: '查看角色',
		meta: {
			title: '查看角色详情',
		},
		hidden: true
	},
	{
		path: 'jurisdiction',
		component: () => import('@/views/modules/admin/role/jurisdiction'),
		name: '分配权限',
		meta: {
			title: '分配权限',
		},
		hidden: true
	},
	]
  },
  {
	path: 'dept',
	icon: 'tree',
	component: () => import('@/views/modules/admin/dept/list'),
	name: '部门管理',
	meta: { 
		title: '部门管理',
		icon: 'tree'
	},
	authCode: 'base:dept',
	children:[{
		path: 'add',
		component: () => import('@/views/modules/admin/dept/add'),
		name: '新增部门',
		meta: {
			title: '新增部门',
		},
		hidden: true
	},
	{
		path: 'edit',
		component: () => import('@/views/modules/admin/dept/edit'),
		name: '修改部门',
		meta: {
			title: '修改部门',
		},
		hidden: true
	},
	{
		path: 'view',
		component: () => import('@/views/modules/admin/dept/view'),
		name: '查看部门',
		meta: {
			title: '查看部门详情',
		},
		hidden: true
	}]
  },
  {
	path: 'post',
	icon: 'post',
	component: () => import('@/views/modules/admin/post/list'),
	name: '岗位管理',
	meta: { 
		title: '岗位管理',
		icon: 'post'
	},
	authCode: 'base:post',
	children:[{
		path: 'add',
		component: () => import('@/views/modules/admin/post/add'),
		name: '新增岗位',
		meta: {
			title: '新增岗位',
		},
		hidden: true
	},
	{
		path: 'edit',
		component: () => import('@/views/modules/admin/post/edit'),
		name: '修改岗位',
		meta: {
			title: '修改岗位',
		},
		hidden: true
	},
	{
		path: 'view',
		component: () => import('@/views/modules/admin/post/view'),
		name: '查看岗位',
		meta: {
			title: '查看岗位详情',
		},
		hidden: true
	}]
  }]
}
export default BaseRoute